package org.jeecg.modules.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wms.entity.FinishedGoodsOutboundDetail;

import java.util.List;

/**
 * 成品出库单明细Service接口
 */
public interface IFinishedGoodsOutboundDetailService extends IService<FinishedGoodsOutboundDetail> {

    /**
     * 根据出库单ID查询明细列表
     */
    List<FinishedGoodsOutboundDetail> queryByOutboundId(String outboundId);

    /**
     * 根据订单ID查询出库明细
     */
    List<FinishedGoodsOutboundDetail> queryByOrderId(String orderId);

    /**
     * 根据库存ID查询出库明细
     */
    List<FinishedGoodsOutboundDetail> queryByInventoryId(String inventoryId);

    /**
     * 统计出库总数量
     */
    Integer sumOutboundQuantityByOutboundId(String outboundId);

    /**
     * 批量删除出库明细
     */
    boolean deleteBatchByOutboundId(String outboundId);
}
